/**
 * Created by Administrator on 2017/3/30 0030.
 */
import Relay from "react-relay";

export default class DelQiniuFileMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { delQiniuFile }`;
    }

    getVariables() {
        return {
            argsInput: {
                fileKey:this.props.fileKey
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on delQiniuFilePayload {
            delQiniuFile {
                value
                errorCode
                qiniutoken
                totalResult
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
             fragment on delQiniuFilePayload {
                    delQiniuFile {
                        value
                        errorCode
                        qiniutoken
                        totalResult
                    }
             }
            `]
        }];
    }

}